package com.cybertooth.dbconvenience.query.columns;

import org.junit.Test;

import static org.hamcrest.MatcherAssert.*;
import static org.hamcrest.Matchers.*;

/**
 * <p></p>
 *
 * @author dnelson
 */
public class WhenOrderByColumnIsCreated {

	@Test
	public void ensureThatTheToSqlOutputIsCorrect() {
		OrderByColumn c = new OrderByColumn(new Column("column_name"));
		assertThat(c.toSql().trim(), is("column_name ASC"));
	}
}
